<?php /* Smarty version Smarty-3.1.18, created on 2015-04-20 10:48:26
         compiled from "/data/www/mystery/protected/modules/webadmin/views/netquestion/huanfen.tpl" */ ?>
<?php /*%%SmartyHeaderCode:446951988553468faf39b00-87765837%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6cbd8457dae7e0261b56c64cae265f594f472406' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/netquestion/huanfen.tpl',
      1 => 1429106530,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '446951988553468faf39b00-87765837',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'qbm' => 0,
    'question' => 0,
    'nq_id' => 0,
    'subject_id' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_553468fb03f777_46505179',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553468fb03f777_46505179')) {function content_553468fb03f777_46505179($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("../common/iframe_header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<form name='myForm1' id='myForm1' method='post' action='/webadmin/netQuestion/dohuanfen'>
    <div style='margin:10px;'>
        <table>
            <tr><td>是否还分：</td><td><input name='isreturn' id="isreturn" class="input-text" type='text' value='<?php echo $_smarty_tpl->tpl_vars['qbm']->value['isreturn'];?>
' />(0不还分，>0为还的分值,此题标准分为<b style="color:red;"><?php echo $_smarty_tpl->tpl_vars['question']->value['standard_score'];?>
</b>)</td></tr>
            <tr><td>审核意见：</td><td><textarea name='suggestion' cols='60' rows='5'><?php echo $_smarty_tpl->tpl_vars['qbm']->value['suggestion'];?>
</textarea></td></tr>
            <tr><td colspan='2'><input type='submit' class="button" value='提交'></td></tr>
        </table>
            <input type="hidden" name="standard_score" id="standard_score" value="<?php echo $_smarty_tpl->tpl_vars['question']->value['standard_score'];?>
" />
            <input name='qbm_id' type='hidden' value='<?php echo $_smarty_tpl->tpl_vars['qbm']->value['qbm_id'];?>
' />
            <input type="hidden" name="nq_id" value="<?php echo $_smarty_tpl->tpl_vars['nq_id']->value;?>
" />
            <input type="hidden" name="subject_id" value="<?php echo $_smarty_tpl->tpl_vars['subject_id']->value;?>
" />
    </div>
</form>
<script>
    $(document).ready(function() {     
            var options = {         
                beforeSubmit:  showRequest,  
                success:       showResponse,
                dataType:  'json'
            }
            $('#myForm1').ajaxForm(options);   
    });
        function showRequest(formData, jqForm, options) { 
            //判断还的分值是否超过标准分
            var huanfen_score = $('#isreturn').val();
            var standard_score = $('#standard_score').val();
            if (huanfen_score > standard_score) {
                alert('还分分值不能大于标准分！');return false;
            }
            return true;
        }
        function showResponse(responseText, statusText, xhr, $form)  { 
            alert(responseText.note);
            if (responseText.status==1) {
                window.parent.location.reload();
            }
        }
</script><?php }} ?>
